<?php

use Illuminate\Support\Facades\Route;
use Modules\Admin\Http\Controllers\AdminController;

Route::get('/admin', function () {
    return view('admin::index');
})->name('admin.index');

// 添加一个通配符路由，用于 Vue Router
Route::get('/admin/{any}', function () {
    return view('admin::index');
})->where('any', '.*');